package com.ruoyi.rsikManage.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rsikManage.mapper.TAlarmThresholdConfigMapper;
import com.ruoyi.rsikManage.domain.TAlarmThresholdConfig;
import com.ruoyi.rsikManage.service.ITAlarmThresholdConfigService;

/**
 * 报警阈值配置Service业务层处理
 * 
 * @author wu
 * @date 2023-08-29
 */
@Service
public class TAlarmThresholdConfigServiceImpl implements ITAlarmThresholdConfigService 
{
    @Autowired
    private TAlarmThresholdConfigMapper tAlarmThresholdConfigMapper;

    /**
     * 查询报警阈值配置
     * 
     * @param id 报警阈值配置ID
     * @return 报警阈值配置
     */
    @Override
    public TAlarmThresholdConfig selectTAlarmThresholdConfigById(Long id)
    {
        return tAlarmThresholdConfigMapper.selectTAlarmThresholdConfigById(id);
    }

    /**
     * 查询报警阈值配置列表
     * 
     * @param tAlarmThresholdConfig 报警阈值配置
     * @return 报警阈值配置
     */
    @Override
    public List<TAlarmThresholdConfig> selectTAlarmThresholdConfigList(TAlarmThresholdConfig tAlarmThresholdConfig)
    {
        return tAlarmThresholdConfigMapper.selectTAlarmThresholdConfigList(tAlarmThresholdConfig);
    }

    /**
     * 新增报警阈值配置
     * 
     * @param tAlarmThresholdConfig 报警阈值配置
     * @return 结果
     */
    @Override
    public int insertTAlarmThresholdConfig(TAlarmThresholdConfig tAlarmThresholdConfig)
    {
        return tAlarmThresholdConfigMapper.insertTAlarmThresholdConfig(tAlarmThresholdConfig);
    }

    /**
     * 修改报警阈值配置
     * 
     * @param tAlarmThresholdConfig 报警阈值配置
     * @return 结果
     */
    @Override
    public int updateTAlarmThresholdConfig(TAlarmThresholdConfig tAlarmThresholdConfig)
    {
        return tAlarmThresholdConfigMapper.updateTAlarmThresholdConfig(tAlarmThresholdConfig);
    }

    /**
     * 批量删除报警阈值配置
     * 
     * @param ids 需要删除的报警阈值配置ID
     * @return 结果
     */
    @Override
    public int deleteTAlarmThresholdConfigByIds(Long[] ids)
    {
        return tAlarmThresholdConfigMapper.deleteTAlarmThresholdConfigByIds(ids);
    }

    /**
     * 删除报警阈值配置信息
     * 
     * @param id 报警阈值配置ID
     * @return 结果
     */
    @Override
    public int deleteTAlarmThresholdConfigById(Long id)
    {
        return tAlarmThresholdConfigMapper.deleteTAlarmThresholdConfigById(id);
    }
}
